var Tail = require('tail').Tail;


var path ='/home/wzq/app/nginx-1.8.0/logs/host.access.log';
var tail = new Tail(path);

tail.on('line', function(data) {
	console.log(data);
});

tail.on('error', function(err) {
	console.log('error:',err)
});